#version 330 core

in float Temperature;

uniform vec3 CoolestColor;
uniform vec3 HottestColor;

out vec4 FragColor;

void main()
{
    vec3 color = mix(CoolestColor, HottestColor, Temperature);
    FragColor = vec4(color, 1.0);
}
